﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            //get
            //string name = Request.QueryString["username"];
            //string pass = Request.QueryString["password"];
            //Label1.Text = "你好：" + name;
            //Label2.Text = "密码是：" + pass;

            //post
            string name = Request.Form["TextBox1"];
            string pass = Request.Form["TextBox2"];
            Label1.Text = "你好：" + name;
            Label2.Text = "密码是：" + pass;

        }
    }
}